import request from '@/utils/request'

// 查询产品设备编号池列表
export function listProductDeviceNoPool(query) {
  return request({
    url: '/produce/product-device-no-pool/list',
    method: 'get',
    params: query
  })
}

// 查询产品设备编号池详细
export function getProductDeviceNoPool(id) {
  return request({
    url: '/produce/product-device-no-pool/' + id,
    method: 'get'
  })
}

// 新增产品设备编号池
export function addProductDeviceNoPool(data) {
  return request({
    url: '/produce/product-device-no-pool',
    method: 'post',
    data: data
  })
}

// 修改产品设备编号池
export function updateProductDeviceNoPool(data) {
  return request({
    url: '/produce/product-device-no-pool',
    method: 'put',
    data: data
  })
}

// 删除产品设备编号池
export function delProductDeviceNoPool(id) {
  return request({
    url: '/produce/product-device-no-pool/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品设备编号池
export function removedProductDeviceNoPool(id) {
  return request({
    url: '/produce/product-device-no-pool/' + id,
    method: 'delete'
  })
}

// 批量新增设备编号
export function batchInsertDevicePool(data){
  return request({
    url: '/produce/product-device-no-pool/batch-insert',
    method: 'post',
    data: data
  })
}